package com.bo.book.mapper;


import com.bo.book.model.BookInfo;
import com.bo.book.model.PageRequest;
import com.bo.book.model.PageResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;

@Mapper
public interface BookMapper {
    Integer insertBook(BookInfo bookInfo);
    List<BookInfo> selectBook();
    Integer count();
    List<BookInfo> getListByPage(PageRequest pageRequest);

    BookInfo queryBookById(Integer bookId);

    void updateBook(BookInfo bookInfo);

    void batchDeleteBook(List<Integer> ids);
}
